package com.example.port.service;

import com.example.port.entity.User;

import java.util.List;

public interface UserService {
    
    User createUser(User user);
    
    List<User> getAllUsers();
    
    User getUserById(Integer id);
    
    User getUserByUsername(String username);
    
    User updateUser(User user);
    
    boolean deleteUser(Integer id);
    
    boolean existsByUsername(String username);
}  
